package org.jeecg.modules.demo.weixin.refundrecord.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo.weixin.dto.RefundDto;
import org.jeecg.modules.demo.weixin.entity.PayOrder;
import org.jeecg.modules.demo.weixin.entity.RefundRecord;

import java.util.Map;

/**
 * @Description: 退款记录表
 * @Author: jeecg-boot
 * @Date:   2023-11-02
 * @Version: V1.0
 */
public interface IRefundRecordService extends IService<RefundRecord> {

    //调用退款接口
    Map<String, String> refund(RefundDto refundDto,String refundId);

    //调用退款接口(服务商)
    Map<String, String> serviceRefund(RefundDto refundDto,String refundId);

    //根据订单状态退款
    Result<?> refundByOrderType(RefundDto refundDto, PayOrder payOrder,RefundRecord refundRecord);


    //调用退款接口
    Result<?> refundZfb(RefundDto refundDto,String refundId,RefundRecord refundRecord);



}
